import Layout from '@/layout'
export default {
  path: '/subject',
  name: 'subject',
  component: Layout,
  meta: { title: 'subject', icon: 'table' },
  children: [
    {
      path: '', // 这里当二级路由的path什么都不写的时候 表示该路由为当前二级路由的默认路由
      component: () => import('@/views/subject/disciplines'),
      meta: {
        title: 'subject', icon: 'component'
      }
    },
    {
      path: 'directorys/:fromPath?',
      name: 'directorys',
      component: () => import('@/views/subject/directorys'),
      meta: {
        title: 'directorys', icon: 'component'
      }
    },
    {
      path: 'tags/:fromPath?',
      component: () => import('@/views/subject/tags'),
      meta: {
        title: 'tags', icon: 'component'
      }
    }
  ]
}